﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using YiLe.BLL.Service;
using YiLe.DAL.Dao;

namespace YiLe.BLL.ServiceImpl
{
    public class PermissionService:IPermissionService
    {
        private PermissionDao permissionDao;

        public PermissionDao PermissionDao
        {
            get { return permissionDao; }
            set { permissionDao = value; }
        }


        public Model.Domain.Permission Get(int id)
        {
            return permissionDao.Get(id);
        }

        public IList<Model.Domain.Permission> GetAll()
        {
            return permissionDao.GetAll();
        }

        public int Save(Model.Domain.Permission entity)
        {
            throw new NotImplementedException();
        }

        public void Update(Model.Domain.Permission entity)
        {
            throw new NotImplementedException();
        }

        public void Delete(Model.Domain.Permission entity)
        {
            throw new NotImplementedException();
        }

        public IList<Model.Domain.Permission> Search(Model.Domain.Permission permission)
        {
            return permissionDao.Search(permission);
        }
    }
}
